// 路由
export const systemRouters = [
  {
    path: "/system",
    name: "system",
    meta: {
      requireAuth: true // 添加该字段，表示进入路由需要登录的
    },
    component: () => import("@/views/system/home/Home"),
    children: [
      {
        // 欢迎界面
        path: "/",
        name: "Welcome",
        meta: {
          requireAuth: true
        },
        component: () => import("@/views/system/Welcome")
      },
      {
        // 用户列表
        path: "user",
        name: "User",
        meta: {
          requireAuth: true
        },
        component: () => import("@/views/system/user/User")
      },
      {
        // 角色列表
        path: "role",
        name: "Role",
        meta: {
          requireAuth: true
        },
        component: () => import("@/views/system/role/Role")
      },
      {
        // 资源列表
        path: "resource",
        name: "Resource",
        meta: {
          requireAuth: true
        },
        component: () => import("@/views/system/resource/Resource")
      },
      {
        // 站点管理
        path: "station",
        name: "Station",
        meta: {
          requireAuth: true
        },
        component: () => import("@/views/system/station/Station")
      }
    ]
  }
];
